package com.sqfw.common.exception;

/**
 * @ Author：linchangchun
 * @ Date：2024-01-15-22:05
 * @ Version：1.0
 */
public class BusinessException extends RuntimeException{

    private static final long serialVersionUID = 1L;
    private String code;
    private String message;

    public BusinessException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public BusinessException(String message) {
        this.message = message;
    }


    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    public void setmessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return this.message;
    }
}
